Skip to content

feat: add blas/ext/base/dnancusumpw#10402

Open
MeKaustubh07 wants to merge 5 commits intostdlib-js:developfrom
MeKaustubh07:blas/ext/dnancusumpw
Open

feat: add blas/ext/base/dnancusumpw#10402
MeKaustubh07 wants to merge 5 commits intostdlib-js:developfrom
MeKaustubh07:blas/ext/dnancusumpw

Conversation

@MeKaustubh07
Copy link
Copy Markdown
Member

Resolves #314 .

Description

What is the purpose of this pull request?

This pull request:

  • feat: add blas/ext/base/dnancusumpw

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

If you answered "yes" to using AI assistance, please provide a short disclosure indicating how you used AI assistance. This helps reviewers determine how much scrutiny to apply when reviewing your contribution. Example disclosures: "This PR was written primarily by Claude Code." or "I consulted ChatGPT to understand the codebase, but the proposed changes were fully authored manually by myself.".

{{TODO: add disclosure if applicable}}


@stdlib-js/reviewers

@stdlib-bot stdlib-bot added BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). Needs Review A pull request which needs code review. labels Feb 21, 2026
@stdlib-bot
Copy link
Copy Markdown
Contributor

stdlib-bot commented Feb 21, 2026

Coverage Report

Package Statements Branches Functions Lines
blas/ext/base/dnancusumpw $\color{green}429/429$
$\color{green}+0.00%$
$\color{green}22/22$
$\color{green}+0.00%$
$\color{green}4/4$
$\color{green}+0.00%$
$\color{green}429/429$
$\color{green}+0.00%$

The above coverage report was generated for the changes in this PR.

Comment on lines +45 to +47
* var N = x.length;
*
* var v = dnancusumpw( N, 0.0, x, 1, y, 1 );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* var N = x.length;
*
* var v = dnancusumpw( N, 0.0, x, 1, y, 1 );
*
* var v = dnancusumpw( x.length, 0.0, x, 1, y, 1 );

@MeKaustubh07 MeKaustubh07 marked this pull request as draft March 5, 2026 16:27
Comment on lines +186 to +187
]);
N = 3;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
]);
N = 3;
]);

var expected;
var x;
var y;
var N;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var N;

]);
N = 3;

dnancusumpw( N, 0.0, x, 2, y, 1 );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dnancusumpw( N, 0.0, x, 2, y, 1 );
dnancusumpw( 3, 0.0, x, 2, y, 1 );

var expected;
var x;
var y;
var N;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var N;

0.0,
0.0 // 2
]);
N = 3;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
N = 3;

]);
N = 3;

dnancusumpw( N, 0.0, x, 1, y, 2 );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dnancusumpw( N, 0.0, x, 1, y, 2 );
dnancusumpw( 3, 0.0, x, 1, y, 2 );

var expected;
var x;
var y;
var N;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var N;

0.0,
0.0
]);
N = 3;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
N = 3;

]);
N = 3;

dnancusumpw( N, 0.0, x, -2, y, -1 );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dnancusumpw( N, 0.0, x, -2, y, -1 );
dnancusumpw( 3, 0.0, x, -2, y, -1 );

var expected;
var x;
var y;
var N;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var N;

0.0,
0.0
]);
N = 3;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
N = 3;

]);
N = 3;

dnancusumpw( N, 0.0, x, 2, y, -1 );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dnancusumpw( N, 0.0, x, 2, y, -1 );
dnancusumpw( 3, 0.0, x, 2, y, -1 );

var y0;
var x1;
var y1;
var N;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var N;

x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element
y1 = new Float64Array( y0.buffer, y0.BYTES_PER_ELEMENT*3 ); // begin at the 4th element

N = 3;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
N = 3;


N = 3;

dnancusumpw( N, 0.0, x1, -2, y1, 1 );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dnancusumpw( N, 0.0, x1, -2, y1, 1 );
dnancusumpw( 3, 0.0, x1, -2, y1, 1 );

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes similar to these needs to be reflected in all tests files


<!-- /.c -->


Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

@MeKaustubh07 MeKaustubh07 marked this pull request as ready for review March 8, 2026 18:39
gururaj1512
gururaj1512 previously approved these changes Mar 9, 2026
Copy link
Copy Markdown
Member

@gururaj1512 gururaj1512 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). Needs Review A pull request which needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFC: add blas/ext/base/dnancusumpw

3 participants